package cn.lili.modules.payment.entity.vo;

import cn.lili.modules.payment.entity.dos.UserWallet;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apiguardian.api.API;


/**
 * 用户当前预存款
 *
 * @author pikachu
 * @since 2020-02-25 14:10:16
 */
@Data
@ApiModel(value = "用户钱包")
@NoArgsConstructor
public class WalletVO {

    @ApiModelProperty(value = "预存款")
    private Double balance;

    @ApiModelProperty(value = "预存款冻结金额")
    private Double frozenBalance;

    @ApiModelProperty(value = "积分")
    private Double points;

    @ApiModelProperty(value = "F分")
    private Double fMoney;

    @ApiModelProperty(value = "分销商分润总额")
    private Double rebateTotal;

    public WalletVO(UserWallet userWallet) {
        this.balance = userWallet.getBalance();
        this.frozenBalance = userWallet.getFrozenBalance();
        this.points = userWallet.getPoints();
        this.fMoney = userWallet.getFmoney();
    }
}
